<%@ page import="java.sql.*" %>
<%@include file="../connection.jsp" %>
<%
            String id = request.getParameter("txtid");
            String judul = request.getParameter("txtjudul");
            String info = request.getParameter("txtinfo");
            String sql = "UPDATE t_artikel SET judul='" + judul + "', info='" + info + "' WHERE id='" + id + "'";
            //out.print(sql);
            stmt.executeUpdate(sql);
            stmt.close();
            conn.close();
            response.sendRedirect("info-investasi.jsp");
%>